function getHTTPObject() 
{
	var xmlhttp; 
  	if(window.XMLHttpRequest)
  	{
    	xmlhttp = new XMLHttpRequest();
  	}
  	else if (window.ActiveXObject)
  	{
    	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    	if (!xmlhttp)
		{
        	xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    	}   
	}
  	return xmlhttp;
}

function showglrs()
{
	var httpQuote = getHTTPObject();
	var num_glrs=window.document.getElementById('num_glrs').value;
	var url = "showglrs.php";
	var param = "num_glrs="+num_glrs;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('show_glrs').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);
	
	
	
	
}

function showglsr()
{
	var httpQuote = getHTTPObject();
	var num_glsr=window.document.getElementById('num_glsr').value;
	var url = "showglsr.php";
	var param = "num_glsr="+num_glsr;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('show_glsr').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function showpsp()
{
	var httpQuote = getHTTPObject();
	var psp_total=window.document.getElementById('psp_total').value;
	var url = "showpsp_detail.php";
	var param = "psp_total="+psp_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('show_psp').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}






